package com.bw.home.model

import com.bw.home.api.HomeApiServer
import com.bw.http.http.okhttp.RetrofitManger
import com.bw.http.http.okhttp.RetrofitUtils
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Qualifier
import javax.inject.Singleton
////
//@Qualifier
//@Retention(AnnotationRetention.BINARY)
//annotation class Home{
//
//}
//
//@Module
//@InstallIn(SingletonComponent::class)
//object NetworkModel {
//
//    @Home
//    @Provides
//    @Singleton
//    fun provideRetrofit():Retrofit{
//        return RetrofitUtils.getRetrofit()
//    }
//
//
//
//    @Provides
//    @Singleton
//    fun provideHomeService(@Home retrofit: Retrofit):HomeApiServer{
//        return  retrofit.create(HomeApiServer::class.java)
//    }
//}